package com.zeta.eduservice.service.impl;

import com.zeta.eduservice.entity.EduTeacherClass;
import com.zeta.eduservice.mapper.EduTeacherClassMapper;
import com.zeta.eduservice.service.EduTeacherClassService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 教师 班级中间表 服务实现类
 * </p>
 *
 * @author zeta
 * @since 2020-08-28
 */
@Service
public class EduTeacherClassServiceImpl extends ServiceImpl<EduTeacherClassMapper, EduTeacherClass> implements EduTeacherClassService {

	@Override
	public List<EduTeacherClass> findByTeacher(String teacherId) {
		QueryWrapper<EduTeacherClass> queryWrapper = new QueryWrapper<EduTeacherClass>();
		queryWrapper.eq("teacher", teacherId);
		List<EduTeacherClass> selectList = baseMapper.selectList(queryWrapper);

		return selectList;
	}

}
